home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CDividedPane 1.0 / CDividedPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  1.2 KB  |  60 lines  |  [TEXT/KAHL]

  1. /*
  2.  *    File:        CDividedPane.h
  3.  *    Evironment:    MacOS 7.0/THINK C 5.0/TCL 1.1.1
  4.  *    Author:        Mark Alldritt
  5.  *
  6.  *
  7.  *        Copyright © 1992  All Rights Reserved
  8.  *        Mark Alldritt
  9.  *        1571 Deep Cove Road
  10.  *        N. Vancouver, B.C. CANADA
  11.  *
  12.  *    
  13.  *    Edit History:
  14.  *
  15.  *    V01-01        Mark Alldritt    15-Jun-1992
  16.  *    - Initial version of module.
  17.  */
  18.  
  19. #define _H_CDividedPane
  20.  
  21. #include <CPane.h>
  22.  
  23. struct CDividedPane : CPane {
  24.  
  25.     /*    Instance variables    */
  26.  
  27.     CPane        *its1stPane;
  28.     CPane        *its2ndPane;
  29.     Boolean        splitHorizontally;
  30.     short        dividerPos;
  31.     short        dividerSize;
  32.     short        min1st;
  33.     short        min2nd;
  34.     short        itsStepSize;
  35.  
  36.     /*    Construction/destruction methods    */
  37.  
  38.     void    IDividedPane(CView *anEnclosure, CBureaucrat *aSupervisor,
  39.                          short aWidth, short aHeight,
  40.                          short aHEncl, short aVEncl,
  41.                          SizingOption aHSizing, SizingOption aVSizing,
  42.                          Boolean splitHorizontally,
  43.                          short dividerPos, short dividerSize,
  44.                          short min1st, short min2nd);
  45.  
  46.     /*    Drawing methods    */
  47.     
  48.     void    Draw(Rect *area);
  49.     
  50.     /*    Event methdos    */
  51.     
  52.     void    DoClick(Point hitPt, short modifierKeys, long when);
  53.     void    AdjustCursor(Point where, RgnHandle mouseRgn);
  54.  
  55.     /*    Accessing methods    */
  56.  
  57.     short    GetDividerPos(void);
  58.     CPane    *Get1stPane(void);
  59.     CPane    *Get2ndPane(void);
  60. };